API Documentation
Public Member Functions | List of all members
nkWinUi::ListBox::Item Class Reference

Public Member Functions

 Item ()
 
 ~Item ()
 
ListBoxgetParentList () const
 
const char * getLabel () const
 
void * getAttachedData () const
 
void setParentList (ListBox *parent)
 
void setLabel (const std::string_view &label)
 
void setAttachedData (void *data)
 

Detailed Description

An item in a list box.

Constructor & Destructor Documentation

◆ Item()

nkWinUi::ListBox::Item::Item ( )

Constructor.

◆ ~Item()

nkWinUi::ListBox::Item::~Item ( )

Destructor.

Member Function Documentation

◆ getParentList()

ListBox* nkWinUi::ListBox::Item::getParentList ( ) const
Returns
The parent list.

◆ getLabel()

const char* nkWinUi::ListBox::Item::getLabel ( ) const
Returns
The label the item has.

◆ getAttachedData()

void* nkWinUi::ListBox::Item::getAttachedData ( ) const
Returns
The user data attached to the item.

◆ setParentList()

void nkWinUi::ListBox::Item::setParentList ( ListBox parent)

Sets the parent list, owning the item.

Parameters
parentThe parent list.

◆ setLabel()

void nkWinUi::ListBox::Item::setLabel ( const std::string_view &  label)

Sets the item label.

Parameters
labelThe label the item should have.

◆ setAttachedData()

void nkWinUi::ListBox::Item::setAttachedData ( void *  data)

Sets the use data attached to the item.

Parameters
dataThe data to attach to the item.
Remarks
The item will not own the data.

The documentation for this class was generated from the following file: